#include <stdio.h>
#include <string.h>
#include <stdlib.h> /*required for test conversion function library*/

int main()
{
#define MAXELS 20
    char test[MAXELS] = "1234";
    int num;
    double dnum;

    num = atoi(test);
    printf("The string %s as an integer number is %d\n", test, num);
    printf("This number divided by 3 is: %d\n", num / 3);

    strcat(test, ".96");

    dnum = atof(test);
    printf("\nThe string %s as a double number is: %f\n", test, dnum);
    printf("This number divided by 3 is: %f\n", dnum / 3);

    return 0;
}